#pragma once
#include "../common/CLog.h"
#include "../common/ConfigOpe.h"
#include "../common/ValueSync.h"

class CDataConvert
{
public:
	CDataConvert(void);
	~CDataConvert(void);

	bool Run();

private:
	bool LoadConfigInfo();
	bool OpenShareMemForType1();
	bool AssignShareMemForType2();
	bool AssignShareMemForType3();
	bool AssignLocalMemForType3();
	
	
private:
	CLog myLog;
	GlobalInstrumentInfo myInstrumentInfo;	

	CValueSync* pShmType1Sync;
	unsigned char* lpLocalForType1;
	int nType1Length;

	CShareMem shmType2;
	unsigned char* lpShmForType2;
};
